package org.uu.service.impl;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.util.StringUtils;
import org.uu.entity.UserDTO;
import org.uu.service.UserService;

import java.time.LocalDateTime;

@DubboService
public class UserServiceImpl implements UserService {

    @Override
    public UserDTO queryUserByNickName(String nickName) {
        if (StringUtils.hasLength(nickName)) {
            return new UserDTO(System.currentTimeMillis(), nickName, nickName, LocalDateTime.now(), null, 0);
        }
        return null;
    }
}
